-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(table striped): isStriped prop fix for multiple computed values in td
#2509
fix(table striped): isStriped prop fix for multiple computed values in td
#2509
Conversation
Fixed `Table` rendering the contents of the cell beneath the stripe for the multiple computed values
🦋 Changeset detectedLatest commit: 2cf59ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe update addresses a rendering issue in the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@alphaxek is attempting to deploy a commit to the NextUI Inc Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (2)
- .changeset/empty-eels-compare.md (1 hunks)
- packages/core/theme/src/components/table.ts (1 hunks)
Additional comments: 2
.changeset/empty-eels-compare.md (1)
- 1-5: The changeset description is clear and accurately describes the fix implemented for the
Table
component. The termtd
is correctly used here, referring to the "table data" cell element in HTML, despite the static analysis hint suggesting a spelling mistake. This is a domain-specific term and is used appropriately in this context.packages/core/theme/src/components/table.ts (1)
- 188-188: The addition of the CSS class
group-data-[odd=true]:before:-z-10
is a precise fix for the rendering issue with striped tables. This change correctly adjusts the z-index for odd rows, ensuring cell contents are displayed above the stripe as expected.Please ensure to verify the impact of this change on other table variants and configurations to confirm that it doesn't introduce any unintended side effects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 1
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- .changeset/empty-eels-compare.md (1 hunks)
Check Runs (5)
TypeScript completed (1)
Tests completed (1)
Build completed (1)
ESLint completed (1)
Prettier completed (1)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- .changeset/empty-eels-compare.md (1 hunks)
Check Runs (5)
TypeScript completed (1)
Prettier completed (1)
Build completed (1)
Tests completed (1)
ESLint completed (1)
Additional comments: 1
.changeset/empty-eels-compare.md (1)
- 5-5: Consider using a more formal verb such as "Resolved" or "Addressed" instead of "Fixed" to begin the change description. Additionally, the term
td
is correctly used in this context as it refers to a table cell element in HTML. However, enclosing technical terms or code snippets in backticks, as done here, is a good practice to distinguish them from regular text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! @alphaxek
Fixed
Table
rendering the contents of the cell beneath the stripe for the multiple computed valuesCloses #2506
📝 Description
Fixed
Table
rendering the contents of the cell beneath the stripe (isStriped) instead of above the stripe in case of multiple computed values provided intd
.⛳️ Current behavior (updates)
Table
rendering the contents of the cell beneath the stripe (isStriped) in case of multiple computed values provided intd
.🚀 New behavior
Table
rendering the contents of the cell above the stripe (isStriped) for the multiple computed values intd
.💣 Is this a breaking change (Yes/No):
No
📝 Additional Information
No
Summary by CodeRabbit